import type { VxeGridProps } from '#/adapter/vxe-table'
import { accountStatusOptions, sendStatusOptions } from '#/config/options/status'

// 列表表头
export const columns: VxeGridProps['columns'] = [
    { title: '序号', type: 'seq', width: 50 },
    { field: 'username', title: '账号名' },
    {
        field: 'status',
        title: '账号状态',
        cellRender: {
            name: 'OptionsText',
            props: {
                options: accountStatusOptions
            }
        }
    },
    { field: 'email', title: '在线状态' },
    { field: 'sentiment', title: '看涨/看跌' },
    { field: 'content', title: '帖子内容' },
    { field: 'imgs', title: '图片地址' },
    { field: 'failureReasons', title: '失败原因' },
    {
        field: 'postStatus',
        title: '发帖状态',
        cellRender: {
            name: 'OptionsText',
            props: {
                options: sendStatusOptions
            }
        }
    },
 {
        field: 'action',
        fixed: 'right',
        slots: { default: 'action' },
        title: '操作',
        width: 120
    }]
